﻿<%@ Page Title="" Language="C#" MasterPageFile="~/homepagew.master" AutoEventWireup="true" CodeBehind="websitecategory.aspx.cs" Inherits="Nhom14_HTTTHD_BuyMe.websitecategory" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopBanner" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="outer">
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSourceTinhPhi"
                    AllowPaging="True" runat="server" AllowSorting="True" 
            CellSpacing="0" GridLines="None">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView TableLayout="Fixed">
                        <ItemTemplate>
                            <table width="100%" cellpadding="10" cellspacing="0" border="0">
                                <tr class="hilite2">
                                    <td class="thumb">
                                        <a href='<%# "details.aspx?id="+ Eval("id") %>'>
                                            <img src='<%# Eval("image") %>' width="100" height="80" class="thumb">
                                        </a>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td class="details grid">
                                        <span class="date">11/07/11</span><br>
                                        <a href='<%# "details.aspx?id="+ Eval("id") %>' class="project"> 
                                            <%# Eval("site_name")%>
                                        </a><span class="icon_premiere"></span>
                                        <br>
                                        <br>
                                        Started:  <%# Eval("date_started")%>, Income: <%# "$" + Eval("income")%> per month, Page Views: <%# Eval("page_views")%> (daily)<br>
                                        Listed in: <%# Eval("name")%>
                                    </td>
                                    <td width="90" class="price grid">
                                        <%# "$" +Eval("asking_price")%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" 
                            Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn " 
                            Visible="True">
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn ">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings>
                        <Scrolling AllowScroll="false" UseStaticHeaders="true" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </HeaderContextMenu>
                </telerik:RadGrid>
                <asp:SqlDataSource ID="SqlDataSourceTinhPhi" runat="server" ConnectionString="<%$ ConnectionStrings:websitebrokenConnectionString %>"    
            SelectCommand="SELECT website.id, website.image, website.site_name, website.site_url, website.date_started, website.page_views, website.income, account.username, website_status.name, website.asking_price, website.id_type FROM website INNER JOIN website_status ON website.id_website_status = website_status.id INNER JOIN account ON website.id_account = account.id INNER JOIN website_category ON website.id = website_category.id_website INNER JOIN category ON website_category.id_category = category.id WHERE (category.id = @id) AND (website.status = 1) ORDER BY website.id_type">
                    <SelectParameters>
                        <asp:QueryStringParameter DefaultValue="1" Name="id" QueryStringField="id" />
                    </SelectParameters>
                </asp:SqlDataSource>
      
    </div>
    <div class="float_r">
        <a href="http://websitebroker.com/websites-for-sale.html" class="button_directory"
            style="margin: 8px 0 0 0;">Go to complete directory</a></div>
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SidebarContent" runat="server">
<h2>
        Search Websites For Sale</h2>
    <form name="search_listings" action="" method="GET"
    class="hilite1 outer" style="margin: 0 0 15px 0; padding: 10px 0 0 10px;">
    <input class="input float_l" type="text" name="srch" value="" style="margin: 0 3px 0 0;">
    <a class="button_search" href="" onclick="">
        Search</a>
    <input type="submit" value="Search" style="display: none;">
    <div style="clear: both;">
    </div>
    <a href="">Advanced Search</a>
    </form>
    <div id="featured_ad" title="Custom Website for the Price You Choose! WATCH VIDEO!">
        <h3>
            <a href="">Featured
                Website for Sale</a></h3>
        <div class="detail_desc">
        </div>
        <img src="./css/999984688.jpg">
       
    </div>
    <div class="account">
        <h2>
            My Account</h2>
        <ul>
         <li><a href="myhomepage.aspx">My Websites-Domain</a></li>
            <li><a href="mybid.aspx">My Bibs</a></li>
            <li><a href="mytransaction.aspx">My Transaction</a></li>
            <li><a href="mymessage.aspx">My Messages</a></li>
        </ul>
    </div>
</asp:Content>
